<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'distribution-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'idfinancialyear'); ?>
		<?php echo $form->textField($model,'idfinancialyear',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'idfinancialyear'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'distributiondate'); ?>
		<?php echo $form->textField($model,'distributiondate'); ?>
		<?php echo $form->error($model,'distributiondate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'idsociety'); ?>
		<?php echo $form->textField($model,'idsociety',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'idsociety'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'idstockitem'); ?>
		<?php echo $form->textField($model,'idstockitem',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'idstockitem'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'distributionquantity'); ?>
		<?php echo $form->textField($model,'distributionquantity',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'distributionquantity'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'availabilityquantity'); ?>
		<?php echo $form->textField($model,'availabilityquantity',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'availabilityquantity'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->